package main

import (
	"mssgserver/config"
	"mssgserver/net"
	"mssgserver/server/login"
)

func main() {
	//config.A() //调用测试方法
	host := config.File.MustValue("login_server", "host", "127.0.0.1")
	port := config.File.MustValue("login_server", "port", "8003")
	server := net.NewServer(host + ":" + port)
	server.NeedSecret(false)
	login.Init()                //初始化account的路由
	server.Router(login.Router) //将ws的服务与路由绑定
	server.Start()
}
